package yhao.demo.autocode.demo;

import yhao.demo.autocode.core.project.NewServiceProjectHelper;
import yhao.demo.autocode.core.project.NewWebProjectHelper;

import java.io.IOException;

/**
 * 生成门面web工程/微服务service工程
 *
 * @see NewWebProjectHelper
 * @see NewServiceProjectHelper
 */
public class NewProjectTest {
    public static void main(String[] args) throws IOException {
        //newService();
        newWeb();
    }

    private static void newService() throws IOException {
        NewServiceProjectHelper helper = new NewServiceProjectHelper(
                "yhao","demo","first","com.gitee.yoara");
        helper.setNeedDubbo(true);
        helper.doNew();
    }

    private static void newWeb() throws IOException {
        NewWebProjectHelper helper = new NewWebProjectHelper(
                "yhao","demo","firstWeb","com.gitee.yoara");
        helper.setNeedRedis(true);
        helper.setNeedAuth(true);
        helper.doNew();
    }
}
